
#ifndef VARIANTBOARD_H
#define VARIANTBOARD_H

#include <BTableWidget>
#include <BScript>

using namespace BWE;

class VariantBoard : public BWidget
{
public:
	VariantBoard(BWidget* parent = 0);
	~VariantBoard();

	void setScript(BScript* script);
	BScript* script() const;

	void freshStack(const BVariantArray& stack);

protected:
	void slotStackFreshed(BObject* object);

private:
	BTableWidget*		_stackWidget;
	BHolder<BScript>	_script;
	bool				_scrollToLastRow;
};

#endif
